<template>
  <!-- 搜索结果为空的空白页面 -->
  <div class="defaultPage">
    <div class="default">
      <div class="defaultImg"></div>
      <div class="txt">
        {{ text1 }}
        <div class="line2">{{ text2 }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'defaultPage',
  props: {
    text1: {
      typeof: String,
      default: '',
    },
    text2: {
      typeof: String,
      default: '',
    },
  },
};
</script>

<style lang="less" scoped>
// 空页面
.defaultPage {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  background-color: #fff;
  text-align: center;
  .default {
    position: absolute;
    top: -100px;
    right: 0;
    bottom: 0;
    left: 0;
    height: 30px;
    margin: auto;
    .defaultImg {
      width: 124px;
      height: 124px;
      background-position: -502px 0;
      background-image: url('https://yanxuan-static.nosdn.127.net/hxm/yanxuan-mall-wap/assets/img/defaultPage-fa86828d57f34836cd69ecd870e80d86.png');
      display: inline-block;
      vertical-align: middle;
      background-size: 313px 313px;
      margin-bottom: 4px;
    }
    .txt {
      font-size: 14px;
      line-height: 1;
      color: #7f7f7f;
      .line2 {
        margin-top: 5px;
      }
    }
  }
}
</style>
